package com.ruoyi.project.note.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 笔记集对象 notebook
 * 
 * @author ruoyi
 * @date 2024-03-10
 */
public class Notebook extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @JsonFormat(shape = JsonFormat.Shape.STRING)//转化成string传到前端
    private Long notebookId;

    /** 笔记集名称 */
    @Excel(name = "笔记集名称")
    private String notebookName;

    /** 用户id */
    @JsonFormat(shape = JsonFormat.Shape.STRING)//转化成string传到前端
    @Excel(name = "用户id")
    private Long userId;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 笔记数 */
    @Excel(name = "笔记数")
    private Integer noteNum;

    public void setNotebookId(Long notebookId) 
    {
        this.notebookId = notebookId;
    }

    public Long getNotebookId() 
    {
        return notebookId;
    }
    public void setNotebookName(String notebookName) 
    {
        this.notebookName = notebookName;
    }

    public String getNotebookName() 
    {
        return notebookName;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setNoteNum(Integer noteNum) 
    {
        this.noteNum = noteNum;
    }

    public Integer getNoteNum() 
    {
        return noteNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("notebookId", getNotebookId())
            .append("notebookName", getNotebookName())
            .append("userId", getUserId())
            .append("username", getUsername())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("noteNum", getNoteNum())
            .toString();
    }
}
